package com.xl.observer.jre;

import java.util.Observable;

public class WeatherSubject extends Observable {

    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        this.setChanged();

        // push
        // this.notifyObservers(content);

        // pull
        this.notifyObservers();

    }
}
